package me.xingyannian.zhaopin.repository;

import me.xingyannian.zhaopin.entity.ChangCi;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

public interface ChangCiRepository extends JpaRepository<ChangCi, Long> {
    Iterable<ChangCi> findAllByIsDeleted(boolean b);

    Page<ChangCi> findAllByIsDeleted(boolean isDeleted, Pageable of);
    Page<ChangCi> findByIsDeletedFalseOrderByIdDesc(Pageable of);
}